home *** CD-ROM | disk | FTP | other *** search
- dXREF - dBASE III Cross Reference Program Version 1.01 [8/16/86]
- Copyright (C) 1986 by LSP, Inc.
-
- File: NEWSMGR Tuesday 17 December 1991 Page No: 1
-
- 1 set echo off
- 2 set talk off
- 3 set bell off
- 4 set status off
- 5 set message to 21 center
- 6 set wrap on
- 7 set color to n/n
- 8 clear
- 9 set color to w/b+
- 10 @ 9,18 to 11,59 double
- 11 set color to w+*/b+
- 12 @10,19 say " Initializing, Please Standby ... "
- 13 erase patron.ntx
- 14 erase sublist.ntx
- 15 use patron
- 16 delete all for len(ltrim(name)) = 0
- 17 pack
- 18 index on state+city+name to patron
- 19 index on pat_number to patnum
- 20 close all
- 21 use sublist
- 22 delete all for len(ltrim(name)) = 0
- 23 pack
- 24 index on state+city+name to sublist
- 25 index on sub_number to subnum
- 26 close all
- 27 option1 = ' 1. Print Subscriber Labels '
- 28 option2 = ' 2. Print Advertiser Label(s) '
- 29 option3 = ' 3. Find Individual Subscriber Entry '
- 30 option4 = ' 4. Find Commercial Advertiser Entry '
- 31 option5 = ' 5. Add Individual Subscriber(s) '
- 32 option6 = ' 6. Add Commercial Advertiser(s) '
- 33 option7 = ' 7. Delete Individual Subscriber '
- 34 option8 = ' 8. Delete Commercial Advertiser '
- 35 option9 = ' 9. Return to Operating System '
- 36 version = ' VERSION 1.0B '
- 37 menuchoice = 1
- 38 do while .t.
- 39 | close all
- 40 | clear
- 41 | counter = 0
- 42 | set color to g+/g
- 43 | @ 3,21 to 6,58 double
- 44 | set color to gr+/n
- 45 | @ 4,22 SAY ' Newspaper Management Program '
- 46 | @ 5,22 say '(C)1991, C & K. All Rights Reserved.'
- 47 | set color to bg+/b+,w+/r,n/n
- 48 | @ 8,17 to 18,62
- 49 | @18,29 to 20,49
- 50 | @ 9,18 prompt '&option1' message "Print Mailing Labels for Paid/Unpaid Subscribers"
- 51 | @10,18 prompt '&option2' message "Print Mailing Labels for One/All Commercial Accounts"
- 52 | @11,18 prompt '&option3' message "Find or Edit Subscriber Record(s) in Database"
- 53 | @12,18 prompt '&option4' message "Find or Edit Advertiser Record(s) in Database"
- File: NEWSMGR Tuesday 17 December 1991 Page No: 2
-
- 54 | @13,18 prompt '&option5' message "Add Subscriber(s) to Database"
- 55 | @14,18 prompt '&option6' message "Add Advertiser(s) to Database"
- 56 | @15,18 prompt '&option7' message "Delete Subscriber From Database"
- 57 | @16,18 prompt '&option8' message "Delete Advertiser From Database"
- 58 | @17,18 prompt '&option9' message "EXIT THIS PROGRAM!"
- 59 | set color to gr+/n
- 60 | @23,18 say '&version'
- 61 | set color to w+*/b+,rb+/r+,n/n
- 62 | @19,30 say ' Select Option 1-9 '
- 63 | set color to bg+/b+,w+/r,n/n
- 64 | menu to menuchoice
- 65 | do case
- 66 | | case menuchoice = 1
- 67 | | | clear
- 68 | | | @10,0 say ' '
- 69 | | | accept " Print Labels for (P)aid, (U)npaid, or (E)xpired Subscribers? (P/U/E) " to paidup
- 70 | | | if (paidup = 'P' .or. paidup = 'p')
- 71 | | | | @row()+2,4 say 'Sending Paid Subscriber Labels to Printer, Please Wait ...'
- 72 | | | | @row()+2,4 say ' '
- 73 | | | | use sublist index sublist
- 74 | | | | reindex
- 75 | | | | label form sublist for paid_sub .and. date() < end_sub to printer noconsole sample
- 76 | | | endif
- 77 | | | if (paidup = 'U' .or. paidup = 'u')
- 78 | | | | @row()+2,4 say 'Sending Unpaid Subscriber Labels to Printer, Please Wait ...'
- 79 | | | | @row()+2,4 say ' '
- 80 | | | | use sublist index sublist
- 81 | | | | reindex
- 82 | | | | label form sublist for .not. paid_sub to printer noconsole sample
- 83 | | | endif
- 84 | | | if (paidup = 'E' .or. paidup = 'e')
- 85 | | | | @row()+2,4 say 'Sending Expired Subscriber Labels to Printer, Please Wait ...'
- 86 | | | | @row()+2,4 say ' '
- 87 | | | | use sublist index sublist
- 88 | | | | reindex
- 89 | | | | label form sublist for end_sub < date() to printer noconsole sample
- 90 | | | endif
- 91 | | case menuchoice = 2
- 92 | | | clear
- 93 | | | @10,0 say ' '
- 94 | | | accept " Print Labels for (O)ne or (A)ll Commercial Advertisers? (O/A)" to oneorall
- 95 | | | if (oneorall = 'O' .or. oneorall = 'o')
- 96 | | | | accept " Enter Advertiser Number -> " to patnumber
- 97 | | | | use patron index patron
- 98 | | | | reindex
- 99 | | | | locate for '&patnumber' $ pat_number
- 100 | | | | if .not. found()
- 101 | | | | | @row()+2,0 say 'Advertiser Number Not Found, Please Recheck and'
- 102 | | | | | wait
- 103 | | | | else
- 104 | | | | | clear
- 105 | | | | | @10,0 say ' '
- 106 | | | | | display space(20)+upper(name) off
- File: NEWSMGR Tuesday 17 December 1991 Page No: 3
-
- 107 | | | | | display space(20)+upper(address1) off
- 108 | | | | | display space(20)+upper(address2) off
- 109 | | | | | display space(20)+upper(rtrim(city))+', '+upper(state)+' '+ zip_4 off
- 110 | | | | | @row()+2,0 say ' '
- 111 | | | | | accept " Correct? (Y/N) " to answer
- 112 | | | | | if (answer = "Y" .or. answer = "y")
- 113 | | | | | | label form patron next 1 to printer noconsole sample
- 114 | | | | | endif
- 115 | | | | endif
- 116 | | | endif
- 117 | | | if (oneorall = 'A' .or. oneorall = 'a')
- 118 | | | | @row()+2,4 say 'Sending All Commercial Advertiser Labels to Printer, Please Wait ...'
- 119 | | | | use patron index patron
- 120 | | | | reindex
- 121 | | | | label form patron to printer noconsole sample
- 122 | | | endif
- 123 | | case menuchoice = 3
- 124 | | | clear
- 125 | | | use sublist index sublist
- 126 | | | reindex
- 127 | | | do zerochk
- 128 | | | if counter <> 0
- 129 | | | | clear
- 130 | | | | @10,0 say ' '
- 131 | | | | accept ' Enter Subscriber Number -> ' to subnumber
- 132 | | | | locate for '&subnumber' $ sub_number
- 133 | | | | if .not. found()
- 134 | | | | | @row()+2,0 say 'Subscription Number Not Found. Full Database Available!'
- 135 | | | | | wait
- 136 | | | | | clear
- 137 | | | | | browse(5,0,17,79)
- 138 | | | | else
- 139 | | | | | clear
- 140 | | | | | set format to sublist
- 141 | | | | | read
- 142 | | | | endif
- 143 | | | endif
- 144 | | case menuchoice = 4
- 145 | | | clear
- 146 | | | use patron index patron
- 147 | | | reindex
- 148 | | | do zerochk
- 149 | | | if counter <> 0
- 150 | | | | clear
- 151 | | | | @10,0 say ' '
- 152 | | | | accept ' Enter Advertiser Number -> ' to patnumber
- 153 | | | | locate for '&patnumber' $ pat_number
- 154 | | | | if .not. found()
- 155 | | | | | @row()+2,0 say 'Advertiser Number Not Found. Full Database Available!'
- 156 | | | | | wait
- 157 | | | | | clear
- 158 | | | | | browse(5,0,17,79)
- 159 | | | | else
- File: NEWSMGR Tuesday 17 December 1991 Page No: 4
-
- 160 | | | | | clear
- 161 | | | | | set format to patron
- 162 | | | | | read
- 163 | | | | endif
- 164 | | | endif
- 165 | | case menuchoice = 5
- 166 | | | clear
- 167 | | | @10,0 say ' '
- 168 | | | accept ' Are You Sure That You Want to Add an Additional Subscriber? (Y/N) ' to answer
- 169 | | | if (answer = 'y' .or. answer = 'Y')
- 170 | | | | clear
- 171 | | | | use sublist index subnum
- 172 | | | | reindex
- 173 | | | | set format to sublist
- 174 | | | | goto bottom
- 175 | | | | store str(val(sub_number)+val('1'),10,0) to sub
- 176 | | | | append blank
- 177 | | | | replace sub_number with sub
- 178 | | | | read
- 179 | | | endif
- 180 | | case menuchoice = 6
- 181 | | | clear
- 182 | | | @10,0 say ' '
- 183 | | | accept ' Are You Sure That You Want to Add an Additional Advertiser? (Y/N) ' to answer
- 184 | | | if (answer = 'y' .or. answer = 'Y')
- 185 | | | | clear
- 186 | | | | use patron index patnum
- 187 | | | | reindex
- 188 | | | | set format to patron
- 189 | | | | goto bottom
- 190 | | | | store str(val(pat_number)+val('1'),10,0) to pat
- 191 | | | | append blank
- 192 | | | | replace pat_number with pat
- 193 | | | | read
- 194 | | | endif
- 195 | | case menuchoice = 7
- 196 | | | clear
- 197 | | | use sublist index sublist
- 198 | | | reindex
- 199 | | | @10,0 say ' '
- 200 | | | accept ' Enter Subscriber Number -> ' to subnumber
- 201 | | | locate for '&subnumber' $ sub_number
- 202 | | | if .not. found()
- 203 | | | | @row()+2,0 say 'Subscription Number Not Found. Please Recheck And'
- 204 | | | | wait
- 205 | | | else
- 206 | | | | clear
- 207 | | | | @10,0 say ' '
- 208 | | | | display space(20)+upper(name) off
- 209 | | | | display space(20)+upper(address1) off
- 210 | | | | display space(20)+upper(address2) off
- 211 | | | | display space(20)+upper(rtrim(city))+', '+upper(state)+' '+ zip_4 off
- 212 | | | | @row()+2,0 say ' '
- File: NEWSMGR Tuesday 17 December 1991 Page No: 5
-
- 213 | | | | accept " Delete This Record? (Y/N) " to answer
- 214 | | | | if (answer = "Y" .or. answer = "y")
- 215 | | | | | delete
- 216 | | | | | pack
- 217 | | | | | @row()+2,0 say 'Subscriber Record Has Been Deleted'
- 218 | | | | | wait
- 219 | | | | endif
- 220 | | | endif
- 221 | | case menuchoice = 8
- 222 | | | clear
- 223 | | | use patron index patron
- 224 | | | reindex
- 225 | | | @10,0 say ' '
- 226 | | | accept ' Enter Advertiser Number -> ' to patnumber
- 227 | | | locate for '&patnumber' $ pat_number
- 228 | | | if .not. found()
- 229 | | | | @row()+2,0 say 'Advertiser Number Not Found. Please Recheck And'
- 230 | | | | wait
- 231 | | | else
- 232 | | | | clear
- 233 | | | | @10,0 say ' '
- 234 | | | | display space(20)+upper(name) off
- 235 | | | | display space(20)+upper(address1) off
- 236 | | | | display space(20)+upper(address2) off
- 237 | | | | display space(20)+upper(rtrim(city))+', '+upper(state)+' '+ zip_4 off
- 238 | | | | @row()+2,0 say ' '
- 239 | | | | accept " Delete This Record? (Y/N) " to answer
- 240 | | | | if (answer = "Y" .or. answer = "y")
- 241 | | | | | delete
- 242 | | | | | pack
- 243 | | | | | @row()+2,0 say 'Advertiser Record Has Been Deleted'
- 244 | | | | | wait
- 245 | | | | endif
- 246 | | | endif
- 247 | | case menuchoice = 9
- 248 | | | clear
- 249 | | | @0,0 say "…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª"
- 250 | | | @1,0 say "∫ Returning To Operating System ∫"
- 251 | | | @2,0 say "∫ Thanks From C & K ∫"
- 252 | | | @3,0 say "»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº"
- 253 | | | return
- 254 | endcase
- 255 | close all
- 256 enddo
- File: ZEROCHK Tuesday 17 December 1991 Page No: 6
-
- 1 count to counter while .not. eof()
- 2 if counter = 0
- 3 | clear
- 4 | @ 9,20 say "…ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª"
- 5 | @10,20 say "∫ No Records Established in This Database ∫"
- 6 | @11,20 say "∫ Please Add Records First! ∫"
- 7 | @12,20 say "»ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº"
- 8 | @14,20 say " Press <CR> to Continue .. "
- 9 | wait ""
- 10 endif
- 11 return